package org.threegroup.mappers;

import org.threegroup.entity.Record;

import java.util.List;

public interface RecordMappers {


    /**
     * 查询所有出入库记录
     * @return
     */
    public List<Record> queryAllRecord();

    /**
     * 新增出入库记录
     * @param record
     * @return
     */
    public Integer addRecord(Record record);

    /**
     * 查询库存数量
     * @param quantity
     * @return
     */
    public Integer queryRecordquantity(Integer quantity);

    /**
     * 查询记录id
     * @param id
     * @return
     */
    public Integer queryRecordid(Integer id);

    /**
     * 修改库存备注
     * @param quantity
     * @return
     */
    public Integer updateRecordremake(Integer quantity);

    /**
     * 删除入库记录
     * @param id
     * @return
     */
    public Integer deleteRecordInto(Integer id);

    /**
     * 删除出库记录
     * @param id
     * @return
     */
    public Integer deleteRecordOut(Integer id);

    public List<Record> queryRecordwarehouse_id(String warehouse_id);

    public List<Record> queryRecordt_goods(String t_goods);

}
